[Cloud Security] Fix ECS import method#5106
Merged
kfirpeled merged 5 commits intoelastic:mainfrom Feb 7, 2023
Merged
Conversation
kfirpeled
commented
Jan 26, 2023
| - name: host.name | ||
| external: ecs | ||
| type: keyword | ||
| - name: host.os.codename |
Contributor
Author
There was a problem hiding this comment.
host.os.codename and host.containerized are not part of ECS atm
elastic/ecs#294
elastic/ecs#1512
Do you think it's worth adding them as a custom field? and for the sake of backward compatibility?
Member
There was a problem hiding this comment.
As long as the field type does not change between the type you set manually and the type the ECS field ends up being its fine to map them. If its unsure then we should get confirmation about the preferred type first.
P1llus
reviewed
Jan 26, 2023
| - name: host.name | ||
| external: ecs | ||
| type: keyword | ||
| - name: host.os.codename |
Member
There was a problem hiding this comment.
As long as the field type does not change between the type you set manually and the type the ECS field ends up being its fine to map them. If its unsure then we should get confirmation about the preferred type first.
🌐 Coverage report
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
This PR fixes the way
cloud_security_postureimports ECS mappings. Till now, we did it manually without knowing how to instructelastic-packagewhich ECS version to import its mappings from.Checklist
changelog.ymlfile.Author's Checklist
How to test this PR locally
Tested with elastic-package 0.72 (requires go 1.19 when built locally)
Related issues
Screenshots